/* --- HERO OG BAGGRUNDSBILLEDE --- */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2em 1em;
    border-radius: 15px;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* eventuelt overlay til kontrast */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0,0,0,0.4);*/
    z-index: 1;
}

/* --- INDHOLD ovenpå --- */
.read-more-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* --- LÆS MERE-STYLING --- */
.read-more-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-height: 1.5em;
    max-height: calc(1.5em * 2);
    overflow: hidden;
    transition: max-height 0.8s ease;
}

.read-more-content.expanded {
    -webkit-line-clamp: unset;
    max-height: 100vh;
}

.read-more-toggle {
    display: inline-block;
    margin-top: 0.5em;
    text-decoration: none;
    cursor: pointer;
    font-weight: 400;
    color: #4639E1;
}

/* Små margin-justeringer */
.read-more-container h2,
.read-more-container h3,
.read-more-container p {
    margin: 0.5em 0;
}

/* Små margin-justeringer */
.read-more-container h3 {
    font-size: 20px;
}

/* Mobil-variant under 780px */
@media (max-width: 780px) {
    .read-more-container h3 {
        font-size: 16px;
    }
}

/* =========================================
   GRADIENT SOM PRIMÆR BAGGRUND (IMAGE = FALLBACK)
   ========================================= */

/* Gradient på hero-container */
.hero {
    background:
        linear-gradient(
            135deg,
            #fafafa 0%,
            #f6f8fa 45%,
            #e7edf3 100%
        );
}

/* Mobil-optimeret gradient (valgfri, kan justeres) */
@media (max-width: 780px) {
    .hero {
        background:
            linear-gradient(
                160deg,
                #fafafa 0%, #f6f8fa 60%, #e7edf3 100%);
    }
}

/* Skjul billedet visuelt når gradient understøttes */
@supports (background: linear-gradient(#fafafa, #f6f8fa)) {
    .hero-bg {
        opacity: 0;
        pointer-events: none;
    }
}

/* Fallback: hvis gradient IKKE understøttes → vis image */
@supports not (background: linear-gradient(#fafafa, #f6f8fa)) {
    .hero-bg {
        opacity: 1;
    }
}